package com.hzdl.car.mapper;

import com.hzdl.car.bean.Menu;
import com.hzdl.car.bean.Role;
import com.hzdl.car.vo.RoleVo;

import java.util.List;

public interface RoleMapper {
    List<Role> findByWhere(RoleVo roleVo);
    List<Menu> findMenuByRoleid(Integer roleid);
    int deleteRoleMenuByRoleId(Integer id);
    int deleteRoleMenuByRid(Integer id);
    int addRoleMenu(RoleVo roleVo);
    int addRole(RoleVo roleVo);
    int updateRole(RoleVo roleVo);
    int deleteRole(RoleVo roleVo);
    int deleteRoleMenuByRid(RoleVo roleVo);
    int deleteRoleUserByRid(RoleVo roleVo);
}
